package com.frejoys.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frejoys.dao.entity.Activity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface ActivityMapper extends BaseMapper<Activity> {

    @Select("select name from j_activity where type = #{type}")
    String getNameByType(@Param("type") Integer type);
}
